package com.lsh.airticket.dao;

import com.lsh.airticket.entity.User;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author lsh
 * @date 2021/2/13
 **/
@Repository
public interface UserDao {
    List<User> findTbUserAll();

    List<User> findTbUserByCondition(HashMap<String, Object> map);

    int insertTbUser(User user);

    // 查找一条数据
    User findTbUserById(Integer userId);
}
